home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 017a / hombase2.zip / CLEANUP.BAT < prev    next >
DOS Batch File  |  1990-06-21  |  3KB  |  122 lines

  1. echo off
  2. rem CLEANUP.BAT (optional [%1=hb])  Mar 29,86
  3. rem cleans up Drive A:'s install progs
  4. cls
  5. echo 
  6.  
  7.  
  8.         CLEANUP HomeBase DISK 1 PROGRAM
  9. echo         -------------------------------
  10.  
  11. echo         Checking disk A:...  (not erasing!)
  12.  
  13. a:
  14. if not exist a:checkwp.com goto cl5
  15. if not exist a:insquit.bat goto cl5
  16. if exist a:ask.com goto cl7
  17. :cl5
  18. if not %1/ == hb/ goto cl6
  19. echo  BE CAREFUL!  To ABORT press [Ctrl][Break] (upper right of keyboard.)
  20. echo Otherwise, to erase HBGRAB, HBNBP, HBTM, and HBNBFIX
  21. pause
  22. goto cl22
  23.  
  24. :cl6
  25. echo 
  26.  
  27. INSQUIT.BAT, CHECKWP.COM and ASK.COM are missing on drive A:.  Cannot
  28. echo cleanup.  The disk in Drive A: is probably not HomeBase DISK 1 or it has
  29. echo already been cleaned. ("a:cleanup hb" will erase certain hb files.)
  30. goto cl999
  31.  
  32. :cl7
  33. if exist a:homebase.bat goto cl10
  34. echo 
  35.  
  36.  
  37.  
  38.  
  39. HOMEBASE.BAT is missing.  Perhaps the INSTALL program has not been run.
  40.  
  41. a:ask Ok to cleanup this disk anyway
  42. if errorlevel 2 a:insquit
  43.  
  44. :cl10
  45. a:checkwp a:
  46. if errorlevel 1 echo DISK 1 is write protected -- Don't use the master!
  47. if errorlevel 1 echo * Cleanup ABORTED *
  48. if errorlevel 1 a:insquit xxx
  49.  
  50.  
  51. cls
  52. echo 
  53.  
  54.  
  55.  
  56. This program will remove all INSTALL related programs that are no longer
  57. echo needed.  Run this after testing Disk 1 for proper installation.
  58.  
  59. a:ask Ok to CLEAN up all unneeded files (except READ.ME and AUTOEXEC.OLD)
  60. if errorlevel 2 a:insquit
  61. cls
  62. echo 
  63.  
  64.  
  65.  
  66.         * * Cleaning Disk 1 * *
  67.  
  68. echo             Please wait...
  69.  
  70.  
  71.  
  72. echo NOTE: HBGRAB.COM, HBPRINT.COM, HBTEMPLT.*, HBCLEAN.EXE and
  73. echo HBNBFIX.EXE can also be erased if you do not use them, or
  74. echo they can be put on a separate disk since they are used
  75. echo only occasionally.
  76. echo    To erase them type  "a:cleanup hb"
  77.  
  78. if not %1/ == hb/ goto cl24
  79. a:ask OK to erase HBGRAB, HBPRINT, HBTEMPLT, HBCLEAN and HBNBFIX
  80. if errorlevel 2 goto cl124
  81. :cl22
  82. echo 
  83.         Erasing lesser used HB files...
  84.  
  85. del RUN_HB.BAT
  86. del HBGRAB.COM
  87. del HBPRINT.COM
  88. del HBTEMPLT.EXE
  89. del HBTEMPLT.HLP
  90. del HBTEMPLT.NDX
  91. del HBNBFIX.EXE
  92. del HBCLEAN.EXE
  93.  
  94. :cl24
  95. if not exist a:insquit.bat goto cl999
  96.  
  97. echo 
  98.         Erasing Install files...
  99.  
  100. del INSTALL.BAT
  101. del INSDONE.BAT
  102. del INSQUIT.BAT
  103. del INSHARD.BAT
  104. del INSFLOP.BAT
  105. del ASK.COM
  106. del GPATH.COM
  107. del CHECKWP.COM
  108. del DISKFREE.COM
  109. del MAKECOPY.BAT
  110. del QUICKY.BAT
  111. del AUTOFLOP.BAT
  112. del AUTOHARD.BAT
  113. del AUTOBOOT.BAT
  114.  
  115. echo 
  116.     Keeping HOMEBASE.BAT, AUTOEXEC.OLD, READ.ME.
  117.  
  118. echo 
  119.          * Cleanup Finished *
  120.  
  121. :cl999
  122.